typedef HRESULT (WINAPI *TD3DXCreateEffectFromFileW)(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   LPCTSTR pSrcFile,
  _In_   const D3DXMACRO *pDefines,
  _In_   LPD3DXINCLUDE pInclude,
  _In_   DWORD Flags,
  _In_   LPD3DXEFFECTPOOL pPool,
  _Out_  LPD3DXEFFECT *ppEffect,
  _Out_  LPD3DXBUFFER *ppCompilationErrors
);

TD3DXCreateEffectFromFileW OldD3DXCreateEffectFromFileW;

DllExport HRESULT cc D3DXCreateEffectFromFileW(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   LPCTSTR pSrcFile,
  _In_   const D3DXMACRO *pDefines,
  _In_   LPD3DXINCLUDE pInclude,
  _In_   DWORD Flags,
  _In_   LPD3DXEFFECTPOOL pPool,
  _Out_  LPD3DXEFFECT *ppEffect,
  _Out_  LPD3DXBUFFER *ppCompilationErrors
)
{
	return OldD3DXCreateEffectFromFileW (pDevice, pSrcFile, pDefines, pInclude,Flags,pPool,ppEffect,ppCompilationErrors);
}
